package com.bug.controller;

import com.bug.domain.Bug;
import com.bug.service.IBugService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: mayuanbao
 * @date: 2019-01-09 15:27
 * @description:
 */
@RestController
public class StatementController {
    @Resource(name = "bugService")
    private IBugService bugService;
    @RequestMapping(value = "/getbugs")
    public List<Bug> getBugs() {
        return bugService.getBugs();
    }
}
